package com._520it.member.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

@Getter@Setter
public class Vip extends BaseDomain {

    //姓名
    private String name;

    //会员卡号:自动生成
    private String card;

    //电话号码
    private String tel;

    //会员卡状态:0:正常,1:挂失
    private Byte state;

    //密码:自动生成初始化密码
    private String password;

    //qq
    private String qq;

    //支付方式
    private String payType;

    //微信号
    private String wechat;

    //邮箱
    private String email;

    //头像路径
    private String imagePath;

    //会员住址
    private String address;

    //可用积分
    private Long usableScore;

    //累计积分
    private Long totalScore;

    //账户余额
    private BigDecimal balance;

    //累计消费金额
    private BigDecimal amount;

    //开卡时间
    @DateTimeFormat(pattern = "yy-MM-dd")
    @JsonFormat(pattern = "yy-MM-dd",timezone = "GMT+8")
    private Date createTime;

    //生日
    @DateTimeFormat(pattern = "yy-MM-dd")
    @JsonFormat(pattern = "yy-MM-dd",timezone = "GMT+8")
    private Date birthday;

}
